import request from '@/utils/request'

const userApi = {
  Login: '/user/login'
}

/**
 * login func
 * parameter: {
 *     username: '',
 *     password: '',
 *     captcha: '12345'
 * }
 * @param parameter
 * @returns {*}
 */
export function login (parameter) {
	console.log(parameter)
  return request({
    url: userApi.Login,
    method: 'get',
		headers: {
		  'Content-Type': 'application/json;charset=UTF-8'
		},
    params: parameter,
  })
}

